import { request } from "@/utils/request";

// 宽带列表
export const getBroadbandInfoListApi = params => {
    return request({
        url: `/ht-smart-house/lifeServiceManage/getBroadbandInfoList`,
        method:'POST',
        data:{
            page: params.page,
            size: params.pageSize
        }
    })
}
// 宽带申请
export const broadbandApplicationApi = params => {
    return request({
        url: `/ht-smart-house/lifeServiceManage/broadbandApplication`,
        method:'POST',
        data:params
    })
}
// 楼层列表获取
export const getFloorListApi = unit => {
    return request({
        url: `/ht-smart-house/lifeServiceManage/getFloorList?unit=${unit}`,
        method:'GET'
    })
}

// 获取新的物业缴费楼层列表
export const getPropertyFeeFloorListApi = unit => {
    return request({
        url: `/ht-smart-house/lifeServiceManage/getFloorList/property?unit=${unit}`,
        method:'GET'
    })
}


//户号列表获取
export const getBroadbandCorporateListApi = params => {
    return request({
        url: `/ht-smart-house/lifeServiceManage/getBroadbandCorporateList`,
        method:'POST',
        data:params
    })
}


//获取新的物业缴费楼层的户号列表
export const getPropertyFeeBroadbandCorporateListApi = params => {
    return request({
        url: `/ht-smart-house/lifeServiceManage/getAccountNumberList`,
        method:'GET',
        data: params
    })
}

//获取房间号物业费信息
export const getRoomPropertyFeeApi = params => {
    return request({
        url: `/ht-smart-house/lifeServiceManage/getRoomPropertyFee`,
        method:'GET',
        data: params
    })
}

//支付物业费
export const payHousePropertyFeeOrderApi = params => {
    return request({
        url: `/ht-smart-house/lifeServiceManage/payHousePropertyFeeOrder`,
        method:'POST',
        data: params
    })
}



// 宽带历史账单获取
export const getBroadbandCorporateOrderApi = params => {
    return request({
        url: `/ht-smart-house/lifeServiceManage/getBroadbandCorporateOrder`,
        method:'POST',
        data:params
    })
}
// 宽带历史账单获取
export const getBroadbandOnLineApi = params => {
    return request({
        url: `/ht-smart-house/lifeServiceManage/getBroadbandOnLine`,
        method:'POST',
        data:params
    })
}
// 获取房间缴费记录
export const getHousePropertyFeeOrderRecordListApi = params => {
    return request({
        url: `/ht-smart-house/lifeServiceManage/getHousePropertyFeeOrderRecordList`,
        method:'POST',
        data:params
    })
}
// 宽带历史账单获取
export const getBroadbandlfUseApi = params => {
    return request({
        url: `/ht-smart-house/lifeServiceManage/getBroadbandIfUse`,
        method:'POST',
        data:params
    })
}
// 获取物业费订单记录
export const getPropertyOrderPageApi = params => {
    return request({
        url: `/ht-smart-house/lifeServiceManage/getPropertyOrderPage`,
        method:'POST',
        data:params
    })
}

//支付物业费
export const payPropertyOrderApi = params => {
    return request({
        url: `/ht-smart-house/lifeServiceManage/payPropertyOrder`,
        method:'POST',
        data: params
    })
}
